Chris Pollett >
Old Classses > |
HW#1 --- last modified February 06 2019 04:12:03..Due date: Feb 17
Files to be submitted: Purpose: To install Apache. To experiment with the HTTP protocol. To write our first XHTML/HTML 5 validating web page. Related Course Outcomes: The main course outcomes covered by this assignment are: (1) Write HTML documents containing standard HTML elements including forms, tables, client-side scripts, and server-side scripts. Specification: For the first part of the assignment, I want you to install Apache, PHP, and Mysql on your laptop and configure it so I can see each of these things is running. You may choose to install MariaDB (a non-Oracle Mysql fork) instead or Mysql. If you decide (as I suggest) to install XAMPP to get stuff running, then I will test that your installation is working by going to the phpMyAdmin page. Demoing this to me either at the start of class or before I give out grades for this homework is worth 1/2 a point. Each person in a group much show me this for the group to receive this 1/2 point. In addition to installing these programs it is useful for this class to have a simple text editor which can be configured to display whitespace characters such as spaces, tabs, end-of-lines, as well as be able to indicate if the line is longer than 80 characters. The open-source editor gedit is available on Windows, Mac, and Linux and can do this. Also, for future homeworks I might get you to use git for version control, so it wouldn't hurt to try to install it early. For the remainder of the assignment, all files I ask for should be zipped together into a file Hw1.zip which is what you submit. As the next part of your assignment, I would like you to experiment with HTTP commands. Start a terminal session (Mac/Linux) or open the command prompt on a Windows machine. On a Windows machine make sure you adjust the scrollback so that you can capture all of what I am about to request. Also, to see the operations you are doing on a Windows machine you might need to issue the command set localecho on. Telnet into port 80 of apple.com. Do an HTTP 1.1 GET request. The response should be a 301 Moved Permanently message. I then want you to telnet into where it says the item was moved to. Capture all of the session details into a file transcript.log. In a separate file, header.txt I want you to list at least five of the distinct response headers you saw in doing the above. For each response header, find out what it is for and write a sentence or two summary of what is for next to that item in your list. For the last part of the assignment, I would like you to create an HTML 5 validating fan page for the cartoon of your choice meeting the following criteria. The page must be in a file fan.html which Validate as HTML5. The page must use at least one img tag referencing a PNG image you created. The page must also have an unordered list on it, a span tag, an anchor tag linking to an official site, and a table. You should use a link tag to specify a favicon. Point Breakdown
|